# Editor
set editor=vim

# Signature
#set signature=~/.signature.sig

# About-me
set from="username@domain.com"
set realname="your name"

# Credential
set imap_user="username@domain.com"
set imap_pass="password"
set smtp_url="smtps://username@domain.com@smtp.domain.com:465/"
set smtp_pass="password"

# Secure
set ssl_starttls=yes
set ssl_force_tls=yes

# Receive mailboxes
set folder="imaps://imap.domain.com:993"
set spoolfile="+INBOX"

# update a buffer in:
set timeout=20

# special character read
set charset="UTF-8"

# alert new emails
set beep_new

# Colors
color hdrdefault cyan default  
color attachment yellow default  
color header     brightyellow default "From: "  
color header     brightyellow default "Subject: "  
color header     brightyellow default "Date: "  
color quoted     green default  
color quoted1    cyan default  
color quoted2    green default  
color quoted3    cyan default  
color error      red default
color message    white default
color indicator  white red
color status     white blue
color tree       red default
color search     white blue
color markers    red default
color index      yellow default '~O'  
color index      yellow default '~N'  
color index      brightred default '~F'
color index      blue default '~D'

###################

# vim like keybinds

###################

# navigation

bind index,pager,attach  g         noop

bind generic,index,pager \Cf       next-page
bind generic,index,pager \Cb       previous-page
bind generic             gg        first-entry
bind generic,index       G         last-entry
bind pager               gg        top
bind pager               G         bottom
bind generic,pager       \Cy       previous-line
bind generic,index,pager \Ce       next-line
bind generic,index,pager \Cd       half-down
bind generic,index,pager \Cu       half-up

# Go to folder...
macro index,pager gi "<change-folder>=INBOX<enter>"       "open inbox"
macro index,pager gd "<change-folder>=Drafts<enter>"      "open drafts"
macro index,pager gs "<change-folder>=Sent<enter>"        "open sent"
macro index,pager gt "<change-folder>$trash<enter>"       "open trash"
macro index,pager gf "<change-folder>?"                   "open mailbox..."
